package com.nbjtjc.safe.api.cost;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.github.pagehelper.PageHelper;
import com.nbjtjc.safe.bean.Result;
import com.nbjtjc.safe.mapper.cost.CostBudgetPlanTempletMapper;
import com.nbjtjc.safe.model.cost.CostBudgetPlanTemplet;

@RestController
@CrossOrigin("*")
@RequestMapping("/costBudgetPlanTemplet")
public class CostBudgetPlanTempletController {
	@Autowired
	private CostBudgetPlanTempletMapper costBudgetPlanTempletMapper;
	
	  @RequestMapping(value = "/find", method = {RequestMethod.POST})
	  public Result find() {
		  Result result=new Result();
	        try {
	        	result.setData(costBudgetPlanTempletMapper.findTemplet());
	        } catch (Exception e) {
	            e.printStackTrace();
	            result.setFalse(e.getMessage());
	        }
		  return result;
	  }
}
